<template>
  <div class="app-wrapper">
    <Sidebar />
    <div class="main-container">
      <Navbar />
      <div class="app-main">
        <Nuxt />
      </div>
    </div>
  </div>
</template>
<script>
import Sidebar from './components/sidebar'
import Navbar from './components/navbar'
export default {
  name: 'Layout',
  components: {
    Sidebar,
    Navbar
  }
}
</script>
<style lang="scss" scoped>
.app-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 1;
  .main-container{
    min-height: 100%;
    margin-left: 240px;
    min-height: calc(100vh - 50px);
    position: relative;
    .app-main{
      padding: 20px;
    }
  }
}
</style>